/* Layout */
import Layout from '@/layout'
export const distribute = [
  {
    path: '/distribute',
    component: Layout,
    alwaysShow: true,
    redirect: '/distribute/video',
    name: 'distribute',
    roles: ['sendfile:page'],
    meta: { title: '分发内容', roles: ['sendfile:page'], icon: 'content' },
    children: [
      {
        path: 'video',
        component: () => import('@/views/distribute/video'),
        query: {
          mediaType: 1
        },
        name: 'distributeVideoList',
        meta: { title: '视频', roles: ['sendfile:page'], icon: 'video' }
      },
      {
        path: 'picture',
        component: () => import('@/views/distribute/picture'),
        name: 'distributePictureList',
        meta: { title: '图片', roles: ['sendfile:page'], icon: 'picture' }
      },
      {
        path: 'webApplication',
        component: () => import('@/views/distribute/webApplication'),
        name: 'webApplication',
        meta: { title: '网页应用', roles: ['sendfile:page'], icon: 'web' }
      },
      {
        path: 'officeFile',
        component: () => import('@/views/distribute/officeFile'),
        name: 'distributeOfficeFileList',
        meta: { title: '文档', roles: ['sendfile:page'], icon: 'office' }
      },
      {
        path: 'applicationProgram',
        component: () => import('@/views/distribute/applicationProgram'),
        name: 'applicationProgramList',
        meta: { title: '应用程序', roles: ['sendfile:page'], icon: 'application' }
      },
      {
        path: 'program',
        component: () => import('@/views/distribute/program.vue'),
        name: 'programList',
        meta: { title: '节目', roles: ['sendfile:page'], icon: 'program' }
      },
      {
        path: 'streaming',
        component: () => import('@/views/distribute/streaming.vue'),
        name: 'streamingList',
        meta: { title: '流媒体', roles: ['sendfile:page'], icon: 'stream' }
      },
      {
        path: 'desktopPicture',
        component: () => import('@/views/distribute/desktopPicture'),
        name: 'desktopPictureList',
        meta: { title: '电脑桌面', roles: ['sendfile:page'], icon: 'desktop' }
      },
      {
        path: 'quickOperateList',
        component: () => import('@/views/distribute/quickOperateList'),
        name: 'quickOperateList',
        meta: { title: '快捷列表', roles: ['sendfile:page'], icon: 'quick' }
      },
      {
        path: 'others',
        component: () => import('@/views/distribute/others'),
        name: 'othersList',
        meta: { title: '其他', roles: ['sendfile:page'], icon: 'other' }
      }
    ]
  },
]
